package com.jluzh10.learning.service;


import com.jluzh10.learning.domain.CourseClassify;

import java.util.List;

/**
 * @author yzg
 * @create 2019/5/24
 */

public interface CourseClassifyService {

    /**
     * 保存一个课程类别
     * @param classify
     * @return
     */
    int addClassify(CourseClassify classify) throws Exception;

    /**
     * 查询所有的课程类
     * @return
     */
    List<CourseClassify> findAll(Integer num) throws Exception;

    /**
     * 根据id查询课程分类
     * @return
     * @throws Exception
     */
    CourseClassify selectOneById(Integer classifyId) throws Exception;
}
